<template>
    <div>
      <div class="nav">
        <router-link tag="div" to="home" class="nav-item home">
          <span>行情</span>
        </router-link>
        <router-link tag="div" to="transaction" class="nav-item transaction">
          <span>交易</span>
        </router-link>
        <router-link tag="div" to="account" class="nav-item account">
          <span>账户</span>
        </router-link>
      </div>
    </div>
</template>

<script>
    export default {}
</script>

<style lang="less" scoped>
  @import "../style/var.less";
  .nav{
    .full-w;
    .flex;
    position: fixed;
    bottom: 0;
    height: 0.9rem;
    border-top: 0.02rem solid #aeaeae;
    background: @mc;
    .nav-item{
      .flex1;
      .flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0.1rem;
      text-align: center;
      background-repeat: no-repeat;
      background-position:top center;
      background-position-y: 0.12rem;
      background-size: 0.36rem 0.36rem;
      padding-top: 0.54rem;
      span{
        font-size: 0.18rem;
      }
    }
    .home{
      background-image: url(../../static/img/tabbar/home.png);
    }
    .transaction{
      background-image: url(../../static/img/tabbar/transaction.png);
    }
    .account{
      background-image: url(../../static/img/tabbar/account.png);
    }
    .router-link-active.home{
      color: #f1a23a;
      background-image: url(../../static/img/tabbar/home2.png);
    }
    .router-link-active.transaction{
      color: #f1a23a;
      background-image: url(../../static/img/tabbar/transaction2.png);
    }
    .router-link-active.account{
      color: #f1a23a;
      background-image: url(../../static/img/tabbar/account2.png);
    }
  }
</style>
